import tornado.ioloop
import tornado.web

import uimodules

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.write("Hello, world")

class IndexHandler(tornado.web.RequestHandler):
    def get(self):
        items = ["Item 1", "Item 2", "Item 3","item class 4"]
        self.render("tpl/index.htm", title="My title", items=items)

settings = {
    "ui_modules": uimodules,
}      
application = tornado.web.Application([
    (r"/", IndexHandler),],settings)

if __name__ == "__main__":
    application.listen(80)
    tornado.ioloop.IOLoop.instance().start()